<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="model.*"%>
<%@ page import="dao.*"%>
<%@ page import="java.util.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	request.setCharacterEncoding("utf-8");
	response.setCharacterEncoding("utf-8");
	List<Route> routes = new ArrayList<Route>();
	routes = RouteDao.getRoutes();
	for (Route item : routes) {
		System.out.println(item.getRname() + " " + item.getVroutes().size());
	}

	request.setAttribute("routes", routes);
	request.setCharacterEncoding("utf-8");
	response.setCharacterEncoding("utf-8");
%>
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8" />
<title>组团信息</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="" name="description" />
<meta content="" name="author" />
<link
	href="http://fonts.googleapis.com/css?family=Hind:300,400,500,600,700"
	rel="stylesheet" type="text/css">
<link href="vendor/simple-line-icons/simple-line-icons.min.css"
	rel="stylesheet" type="text/css" />
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"
	type="text/css" />
<link href="css/animate.css" rel="stylesheet">
<link href="vendor/swiper/css/swiper.min.css" rel="stylesheet"
	type="text/css" />

<!-- THEME STYLES -->
<link href="css/layout.min.css" rel="stylesheet" type="text/css" />

<!-- Favicon -->
<link rel="shortcut icon" href="favicon.ico" />
</head>
<!-- END HEAD -->

<!-- BODY -->
<body id="body" data-spy="scroll" data-target=".header">

	<jsp:include page="Header.jsp" flush="true"></jsp:include>


	<!-- Latest Products -->
	<div id="组团信息">
		<div class="content-lg container">
			<div class="row margin-b-40">
				<div class="col-sm-6">
					<h2>组团信息</h2>
					<p></p>
				</div>
			</div>
			<!--// end row -->


			<c:forEach var="route" items="${routes}" varStatus="status">
			<div class="media">
				<div class="media-left">
					<img class="media-object" src="img/tx1.jpg" alt="...">
				</div>
				<div class="media-body">
				<h4>
					<a target="_blank" href="MessageList.jsp?vname=${vroute.getView().name }">${route.rcname }</a> 
				</h4>
					<p>${message.info }</p>
                    <p>路线价格&nbsp;:&nbsp;${route.money }
						&nbsp;&nbsp;&nbsp;路线时长&nbsp;:&nbsp;${route.days } &nbsp;</p>
					<p>路线信息&nbsp;:&nbsp;${route.info } &nbsp;</p>
					<hr>
				<h5 class="text-center">
				<a class="link " style="font-size: 17px"
					href="javascript:if(confirm('确定要添加订单吗?'))
				location='<%=request.getContextPath()%>/RorderServlet?rname=${route.rname }&handle=addRorder'">
					添加到订单</a>
				</h5>
				</div>
			</div>
			</c:forEach>
		</div>		
			

			<!--// end row -->
		</div>
	</div>
	<!-- End Latest Products -->

	<jsp:include page="Footer.jsp" flush="true"></jsp:include>
	<!-- Back To Top -->
	<a href="javascript:void(0);" class="js-back-to-top back-to-top">Top</a>

	<!-- JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
	<!-- CORE PLUGINS -->
	<script src="vendor/jquery.min.js" type="text/javascript"></script>
	<script src="vendor/jquery-migrate.min.js" type="text/javascript"></script>
	<script src="vendor/bootstrap/js/bootstrap.min.js"
		type="text/javascript"></script>

	<!-- PAGE LEVEL PLUGINS -->
	<script src="vendor/jquery.easing.js" type="text/javascript"></script>
	<script src="vendor/jquery.back-to-top.js" type="text/javascript"></script>
	<script src="vendor/jquery.smooth-scroll.js" type="text/javascript"></script>
	<script src="vendor/jquery.wow.min.js" type="text/javascript"></script>
	<script src="vendor/swiper/js/swiper.jquery.min.js"
		type="text/javascript"></script>
	<script src="vendor/masonry/jquery.masonry.pkgd.min.js"
		type="text/javascript"></script>
	<script src="vendor/masonry/imagesloaded.pkgd.min.js"
		type="text/javascript"></script>


	<!-- PAGE LEVEL SCRIPTS -->
	<script src="js/layout.min.js" type="text/javascript"></script>
	<script src="js/components/wow.min.js" type="text/javascript"></script>
	<script src="js/components/swiper.min.js" type="text/javascript"></script>
	<script src="js/components/masonry.min.js" type="text/javascript"></script>
	<script src="js/components/google-map.min.js" type="text/javascript"></script>

</body>
<!-- END BODY -->
</html>